﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ZJF.advance._01_继承
{
    internal class Student:Person
    {
        public Student() { }

        public Student(string name, int age, string gender, string school) : base(name, age, gender) { 
            this.School = school;
        }

        public Student(string school)
        {
           this.School = school;
        }

        public string School { get; set; }

        public void study() {
            Console.WriteLine($"{this.name} is study in {this.School}");
        }
    }
}
